package com.ruoyi.utils.config;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.github.wxpay.sdk.WXPayConfig;

public class WeiXinPayConfig implements WXPayConfig{
    private byte[] certData;

    public void MyConfig() throws Exception {
        //此处暂时用不到，这里是读取证书的地方
    }

    public String getAppID() {
        return "wx9e584abdcd96775e";
    }

    public String getMchID() {
        //申请普通商户时分配给你的商户号
        return "1702941168";
    }

    public String getKey() {
        //这里的key 就是你在支付平台设置的API密钥
        return "这是就是你的Key了";
    }

    public InputStream getCertStream() {
        ByteArrayInputStream certBis = new ByteArrayInputStream(this.certData);
        return certBis;
    }

    public int getHttpConnectTimeoutMs() {
        return 8000;
    }

    public int getHttpReadTimeoutMs() {
        return 10000;
    }
}
